package com.xukang.zookeeper_demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient  //作用是 如果使用consul，zookeeper 使用该注解向注册中心发起注册
public class ZookeeperDemo2Application {

    public static void main(String[] args) {
        SpringApplication.run(ZookeeperDemo2Application.class, args);
    }

}
